import { createRouter, createWebHistory } from 'vue-router'

import RootPage from '../view/index/RootPage.vue'
import DeskTop from '../view/index/DeskTop.vue'

import Tool from '../global'

import JobManager from '../view/admin/job/JobManager.vue'
import DbsetManager from '../view/admin/dbset/DbsetManager.vue'
import LogManager from '../view/admin/Log/LogManager.vue'
import DictionaryComparison from '../view/admin/dict/DictionaryComparison.vue'
import DictManager from '../view/admin/dict/DictManager.vue'
let routes = [
    {
        path: "/", component: RootPage, redirect: "/job", // 添加重定向到工作台
        children: [
            // { name: "工作台", path: "/desktop", component: DeskTop },
            { name: "任务信息", path: "/job", component: JobManager },
            { name: "数据库连接信息", path: "/dbset", component: DbsetManager },
            { name: "日志查询", path: "/log", component: LogManager },
            { name: "日志查询", path: "/log", component: LogManager },

        ]
    }
    // { path: "/login", component: LoginPage }
]

const toolObj = new Tool()

const router = createRouter({
    history: createWebHistory(),
    routes: routes
})


export default router;